package com.xcj.springai.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.xcj.springai.constant.ContentTypeConstants;
import com.xcj.springai.constant.MemoryConstants;
import lombok.*;

/**
 *
 */
@Getter
@Builder
@AllArgsConstructor
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ChatResponse<T> {
    /**
     * 消息类型 text/toolRes/
     */
    @Builder.Default
    private String mt = ContentTypeConstants.AI_TYPE;

    /**
     * 回答内容
     */
    private T dt;

    /**
     * AI
     */
    @Builder.Default
    private String rt = MemoryConstants.AI;

    /**
     * 描述
     */
    private String dc;

    /**
     * 消息状态
     */
    @Builder.Default
    private Boolean done = false;
}